<script type="text/javascript">
  $(document).ready(function () {
    $('form').submit(function () {
        $('input:submit').val('Procesando...');
        $('input:submit').prop('disabled', true);
        return true;
    });
  });
</script>

<h1>Crear Categor&iacute;a</h1>

<%= render :partial => 'shared/error_messages', :locals => { :errors => @category.errors } %>


<% form_for [:admin, @category] do |f| %>
    <%= f.text_field :name %>

    <%= f.submit 'Crear' %>
<% end %>
